package com.yxq.mdt.app.modules.personal.model;

import com.yxq.mdt.app.modules.personal.bean.RealNameResultBean;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @author L
 * @time 2019-11-25
 * @describe 实名相关API$
 */
public interface RealNameAPI {

    /**
     * 实名认证
     */
    @POST("/lbs/live/user/saveRealName")
    @FormUrlEncoded
    Observable<String> saveRealName(@Field("code") String code, @Field("resultCode") String resultCode, @Field("identityCardName") String identityCardName, @Field("identityCardNo") String identityCardNo);

    /**
     * 开通蜜聊
     */
    @Headers("Content-Type: application/json")
    @POST("/lbs/live/user/saveOpenChat")
    Observable<String> saveOpenChat(@Body RequestBody body);

    /**
     * 主播中心-提现信息采集
     */
    @POST("/lbs/live/user/saveCard")
    @FormUrlEncoded
    Observable<String> saveCard(@Field("identityCardName") String identityCardName, @Field("identityCardNo") String identityCardNo, @Field("identityCardFront") String identityCardFront, @Field("identityCardBack") String identityCardBack);

    /**
     * 实名认证信息与开通信息
     */
    @GET("/lbs/gs/user/getCardNoAndName")
    Observable<RealNameResultBean> getCardNoAndName();
}
